//
//  DBManager.h
//  Mango
//
//  Created by lanou3g on 16/5/14.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseModel.h"
@interface DBManager : NSObject
+ (instancetype)shareManager;
//存储搜索历史
- (void)saveSearchHistory:(NSString *)history;
//获取搜索历史
- (NSArray *)selectAllSearchHistory;
//删除搜索历史
- (void)deleteSearchHistory:(NSString *)history;
//是否已经存储搜索历史
- (BOOL)hasSave:(NSString *)searchHistory;
//收藏
- (void)collectLeftModel:(BaseModel *)model;
//取消收藏
- (void)cancelCollectArticle:(NSInteger)contentID;

//判断是否收藏
- (BOOL)hasCollect:(NSInteger)contentID;
- (NSArray *)selecteAllCollect;
@end
